#include <iostream>
using namespace std;

int main()
{
    string s;
    string ret;
    cin >> s;
    int n = s.size();
    for (int i = 0; i < n; i++)
    {
        ret += s[i];
        if ((n - i - 1) % 3 == 0 && i != n - 1)
        {
            ret += ',';
        }
    }
    cout << ret << endl;
    return 0;
}



#include <iostream>
using namespace std;

int main()
{
    int a = 1;
    int b = 1;
    int c;
    int n;
    cin >> n;
    for (int i = 2; i <= n; i++)
    {
        c = a + b;
        a = b;
        b = c;
    }
    if (n == 0 || n == 1)
        cout << n << endl;
    else cout << c << endl;
    return 0;
}